<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let person = {
            name: 'zz',
            age: 24
        }
        Object.defineProperty(person, 'height', {
            value: '58m',
            writable: true,
            enumerable: true,
            configurable: true,
            get() {},
            set() {}
        })
        // console.log(Object.keys(person));
        // console.log(person);
        // Object.defineProperty(person, 'height', {
        //     value: '1999',
        //     writable: true,
        //     enumerable: false,
        //     configurable: false
        // })
        // // person.height = 100
        // console.log(person);
        // console.log(Object.keys(person));

        // console.log(person.hasOwnProperty('height'));
    </script>
</body>
</html>